package nc.tb.form.ui.eva;

import java.awt.Container;

import nc.tb.cube.model.MetaPlan;
import nc.tb.form.ui.formulaset.DimFormulaExpressSetPnl;
import nc.tb.form.ui.set.AbstractFormulaExpressSetPnl;
import nc.tb.form.ui.set.AbstractFormulaListPnl;
import nc.tb.form.ui.set.AbstractFormulaSetDlg;
import nc.vo.pub.BusinessException;

public class EvaFormulaSetDlg extends AbstractFormulaSetDlg {

	public EvaFormulaSetDlg(Container parent, String title, MetaPlan cube){
		super(parent, title, cube);
	}
	
	@Override
	public AbstractFormulaExpressSetPnl getFormulaExpressSetPnl()
			throws BusinessException {
		if(formulaExpressSetPnl==null){
			formulaExpressSetPnl = new DimFormulaExpressSetPnl();
		}
		return formulaExpressSetPnl;
	}

	@Override
	public AbstractFormulaListPnl getFormulaListPnl() throws BusinessException {
		if(formulaListPnl==null){
			formulaListPnl = new EvaDimFormulaListPnl(getCube());
		}
		return formulaListPnl;
	}

}
